<?php
class ProductModel extends Model {
protected $_validate         =         array(

        array('simple_code','require','编码必须'),
        array('pic','require','图片必须提供'),        
        array('unit','require','单位必须提供'),
        array('weight','require','单个商品克重必须'),
        array('price','require','售价必须提供'),
        array('simple_code','','编码已经存在',1,'unique','add')
        ); 

}
?>